#!/bin/bash

remote_ip="120.197.235.112"
remote_port="6606"
  
# 用户名和密码
username="shanghai_zaixin_sftp"
password="s6kg2#F!6ljYF992slj@4"
  
# 要下载的文件路径
remote_file="/file/md5-own-one-20240123.txt"
local_file="./origin/md5-own-one-20240123.txt"
  
# 建立sftp连接
sftp -P $remote_port $username@$remote_ip << EOF
get $remote_file $local_file
bye
EOF
